package com.md.api.goods;

import com.md.model.request.goods.InsertGoodsTypeRequest;
import com.md.model.system.CommonResult;
import com.md.value.constants.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 刘骄阳
 * 2022-04-01 11:30
 */
@Api(tags = {ApiConstants.GOOD_TYPE})
public interface GoodsTypeApi {

  /**
   * 后台添加商品类别
   *
   * @param request 商品类别
   * @return 操作结果
   */
  @PostMapping("/goods-type/insert")
  @ApiOperation("后台添加商品类别")
  CommonResult<Long> insert(@ApiParam("获取访问者请求实体") @RequestBody InsertGoodsTypeRequest request);

}
